from Common.basepage import BasePage
from PageLocators.MainPage_locator import MainPageLocator as loc
import re
from Common.handle_log import do_log
from Common.connect_to_device import d_one

import time


class MainPage(BasePage):
    def click_first_television(self):
        self.click_element(loc.television_loc, "点击电视频道")
        time.sleep(2)
        self.click_element(loc.iv_card, "点击第一个推荐卡片")

    def click_back(self):
        self.click_element(loc.back_loc, "点击返回")


if __name__ == '__main__':
    pass
